{% extends "base.html" %}

{% block title %}{{ knyga.antraste|escape }} - {{ application_name }}{% endblock %}

{% block head %}
	<style type="text/css">

	#body {
		margin-left: 10px;
		margin-right: 10px;
	}

	h1 {
		font-size: large;
		margin: 0;
	}

	ul.irasai {
		margin: 0;
		padding: 0;
		margin-left: 1.25em;
		list-style-type: square;
	}

	ul.irasai li {
		margin-top: 0.75em;
	}

	ul.irasai li.grazinta {
		color: gray;
		text-decoration: line-through;
	}

	</style>
{% endblock %}

{% block body %}
	<h1>{{ knyga.antraste|escape }}</h1>

	<ul class="irasai">
		{% for irasas in irasai %}
					
			<li{% if irasas.grazinta %} class="grazinta"{% endif %}>{{ irasas.skaitytojas|escape }} ({{ irasas.isduota_local|date:"Y-m-d H:i" }} &mdash; {{ irasas.grazinta_local|date:"Y-m-d H:i" }})</li>
		{% endfor %}
	</ul>
{% endblock %}
